/******************************************************************************
 * Filename    : SMDResponse.java
 * Author      : LEOH.LEUNG
 * Date Created: 2012-07-16
 * Content     : Definition of ...
 * (c) Copyright XML Asia Limited 2012. All rights reserved.
 * No part of this program may be photocopied reproduced or translated to
 * another program language without prior written consent of XML Asia Limited
 ******************************************************************************/

package com.xmlasia.web.smd;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 * 
 * @author LEOH.LEUNG
 *
 */
@JsonIgnoreProperties(ignoreUnknown=true)
public class SMDResponse {

	private Object data;
	private SMDResponseStatus status;
	
	public SMDResponse(){
		status = SMDResponseStatus.SUCCESS;
	}

	@JsonProperty(value="data")
	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@JsonProperty(value="status")
	public Integer getStatus() {
		return status.getCode();
	}

	@JsonIgnore
	public SMDResponseStatus getResponseStatus() {
		return status;
	}

	public void setStatus(SMDResponseStatus status) {
		this.status = status;
	}
	
	
}
